package com.twang.stock.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 历史数据：
 *      "trade_money": "56480431",
 *      "diff_money": "0.01",
 *      "code": "600004",
 *      "open_price": "13.81",
 *      "date": "2016-09-02",
 *      "market": "sh",
 *      "min_price": "13.73",
 *      "trade_num": "40861",
 *      "turnover": "0.36",
 *      "close_price": "13.82",
 *      "max_price": "13.9",
 *      "swing": "1.23",
 *      "diff_rate": "0.07"
 */
@Data
public class HistoryStockData implements Serializable {
   /*
    */
    /**
     * 交易额
     */
    @JSONField(name = "trade_money")
    private BigDecimal tradeMoney;

    /**
     * code
     */
    @JSONField(name = "code")
    private String code;

    /**
     * 开盘价
     */
    @JSONField(name = "market")
    private String market;

    /**
     * 开盘价
     */
    @JSONField(name = "open_price")
    private String openPrice;

    /**
     * 开盘价
     */
    @JSONField(name = "date")
    private String date;

    /**
     * 收盘价
     */
    @JSONField(name = "close_price")
    private String closePrice;

    /**
     * 最低价
     */
    @JSONField(name = "min_price")
    private String minPrice;

    /**
     * 最高价
     */
    @JSONField(name = "max_price")
    private String maxPrice;

    /**
     * 成成交数（手）
     */
    @JSONField(name = "trade_num")
    private String tradeNum;



}
